﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace ToolGenerateDiagram
{
    public partial class ProgressBarStutus : Form
    {
        public ProgressBarStutus()
        {
            InitializeComponent();
        }

        public Thread _Thread;

        private void ProgressBarStutus_Load(object sender, EventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;
        }

        public void StartThread(ParameterizedThreadStart param, object obj)
        {
            _Thread = new Thread(param);
            _Thread.Start(obj);
        }

        public void SetValue(string label, string text)
        {
            lblText.Text = text;
            lbllabel.Text = label;
         
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            _Thread.Abort();
            this.Close();
        }


    }
}
